package com.hospital.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class Drug {
    @NotNull(message = "id不得为空")
    private int drug_id;

    @NotNull(message = "office_id不得为空")
    private int office_id;

    @NotEmpty(message = "name不得为空")
    private String drug_name;

    @NotEmpty(message = "药品类型不得为空")
    private String drug_type;

    @NotEmpty(message = "药品规格不得为空")
    private String drug_model;

    @NotEmpty(message = "药品使用方法不得为空")
    private String drug_use;

    @NotEmpty(message = "药品厂商不得为空")
    private String drug_frim;

    @NotNull(message = "药品价格不得为空")
    private double drug_price;


    @NotNull(message = "库存不得为空")
    private int drug_stock;

}
